//
//  ViewControllerB.m
//  TransValue_xib
//
//  Created by Justsoso on 16/2/25.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "ViewControllerB.h"

@interface ViewControllerB ()

@end

@implementation ViewControllerB

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.infoLabel.text = [NSString stringWithFormat:@"用户名:%@ 密码%@\n %@",self.username,self.password,[self.username isEqualToString:@"admin"] && [self.password isEqualToString:@"123456"]?@"登录成功":@"登录失败"];
    
    
}

- (IBAction)cancelBtnPressed:(id)sender
{
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self.view endEditing:YES];
}

@end
